home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13252 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: key input: "hot" keys via standard libraries (unix c)
  5. Date: Fri, 05 Apr 96 14:57:13 GMT
  6. Organization: none
  7. Message-ID: <828716233snz@genesis.demon.co.uk>
  8. References: <Pine.SUN.3.92.960404211350.28756B-100000@suntan>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <Pine.SUN.3.92.960404211350.28756B-100000@suntan>
  15.            cdiaz@eng.usf.edu "CS" writes:
  16.  
  17. >Hello! Does stdio.h have the capabilities to support the implementation of
  18. >"hot" keys? My "hot" key routine is the menu navigator of a loan program
  19. >and needs to meet the requirements that make "hot" key what it is:
  20. > 1) Must never print to the screen the key pressed.
  21. > 2) Must NOT wait for ENTER to be pressed before reading th keystroke.
  22. > 3) IF no key has been pressed, the program can do something else
  23. >(like update a clock with seconds digits) and then go back and wait for
  24. >the key.
  25.  
  26. No, standard C does not support this.
  27.  
  28. >Thanks a million! Please don't refer me to non standard libraries. This
  29. >program has to be as least platform-dependent as possible. The
  30. >libraries I have at my disposal are stdio.h, time.h, ctype.h, locale.h,
  31. >math.h, signal.h, stdlib.h & limits.h.
  32.  
  33. Without using non-standard libraries/system calls you simply can't do it.
  34. The FAQ discusses it, and has just been posted to this newsgroup. You can also
  35. ftp it from rtfm.mit.edu under /pub/usenet/comp.lang.c
  36.  
  37. -- 
  38. -----------------------------------------
  39. Lawrence Kirby | fred@genesis.demon.co.uk
  40. Wilts, England | 70734.126@compuserve.com
  41. -----------------------------------------
  42.